import Vue from 'vue'
import App from './App.vue'
import store from './store'
import router from './router'
import fastClick from 'fastclick'

import '@/stylus/index.styl'
import { Popup, Toast, Loading } from 'vant'

import '@/icons' // icon
import '@/permission' // permission control

Vue.config.productionTip = false
fastClick.attach(document.body)
Vue.use(Popup).use(Toast).use(Loading)

Vue.prototype.$toast = Toast

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
